package com.zerosky.crm.service;

import java.util.List;
import java.util.Map;

import com.zerosky.crm.po.Activity;
import com.zerosky.crm.po.Notice;
import com.zerosky.crm.util.PageInfo;

/**
 * Activity业务逻辑接口
 * 
 * @author hugy;
 * @since 2017-06-08
 */
public interface ActivityService {

	/**
	 * Activity列表接口
	 * 
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public List<Activity> getActivityList(Map map);

	/**
	 * Activity列表接口
	 * 
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public PageInfo<Activity> getPageInfoActivityList(Map map, PageInfo<Activity> page);

	/**
	 * 通过主键查找Activity实体接口
	 * 
	 * @param id
	 *            Activity主键
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public Activity getActivityById(String id);

	/**
	 * 保存Activity接口
	 * 
	 * @param Activity
	 *            实体对象, operation 操作类型
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public void saveActivity(Activity activity, String operation) throws Exception;

	/**
	 * 批量删除Activity接口
	 * 
	 * @param idArray
	 *            Activity主键数组
	 * @author hugy;
	 * @since 2017-06-08
	 */
	public void deleteActivityById(String id) throws Exception;
}
